export class Vector2 {
    x: number
    y: number
	constructor( x = 0, y = 0) {
		this.x = x
		this.y = y
	}

    set( x: number, y: number ) {
		this.x = x
		this.y = y
		return this
	}

    setScalar( scalar: number ) {
		this.x = scalar
		this.y = scalar
		return this
	}

    setX( x: number ) {
		this.x = x
		return this
	}

	setY( y: number ) {
		this.y = y
		return this
	}
}